import request from '@/utils/request';
import Qs from 'qs';
import { SelectionRecordQueryParams } from '@/api/group/investmentPromotion/types'

// 下载中心列表数据
export const getExcelList = (data: any) => {
    return request({
        url: `/basic/excel/getExcelList`,
        method: 'post',
        data
    });
};

// 下载中心删除
export const deleteExcel = (params: any) => {
    return request({
        url: `/basic/excel/deleteExcel`,
        method: 'get',
        params
    });
};



export const productsBusinessExport = (data: { id: string | number; }[]) => {
    return request({
        url: '/electroniccommerce/productsBusiness/export',
        method: 'post',
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
        responseType: 'blob',
        data: Qs.stringify(data)
    });
};


export const auditAction = (data: any) => {
    return request({
        url: `/basic/hmProducts/auditAction`,
        method: 'post',
        data
    });
};
